package io.renren.modules.finance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 收益账户变动明细表
 *
 * @author meishou
 * @date 2019-05-02 14:36:34
 */
@SuppressWarnings("unused")
@Data
@TableName("finance_money_record")
public class FinanceMoneyRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 钢镚
     */
    public static final int TYPE_BALANCE = 1;
    /**
     * 金币
     */
    public static final int TYPE_COIN = 2;
    /**
     * 金额增加
     */
    public static final int MONEY_GET = 1;
    /**
     * 金额减少
     */
    public static final int MONEY_PAY = 0;


    /**
     * 普通金币
     */
    public static final int CHANGE_ITEM_COIN_1 = 1;
    /**
     * 普通金币
     */
    public static final int CHANGE_ITEM_COIN_2 = 2;


    /**
     * 金币兑换
     */
    public static final int CHANGE_ITEM_1 = 1;
    /**
     * 云换货-补差价
     */
    public static final int CHANGE_ITEM_9 = 9;
    /**
     * 总部手动增加收入
     */
    public static final int CHANGE_ITEM_10 = 10;
    /**
     * 总部手动减少收入
     */
    public static final int CHANGE_ITEM_11 = 11;
    /**
     * 提现支出
     */
    public static final int CHANGE_ITEM_12 = 12;







    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String mobile;
    @TableField(exist = false)
    private String gradeAliasName;
    @TableField(exist = false)
    private String itemName;
    @TableField(exist = false)
    private String orderNo;
    @TableField(exist = false)
    private String channelName;
    @TableField(exist = false)
    private String logo;

    @TableId(type = IdType.AUTO)
    private Integer id; //主键
    private Long userId; //代理商主键
    private Integer changeItem; //变更项（查看字典表）
    private Integer channelId;
    private Integer type;

    private Integer operatorStyle; //金额增减（0：表示减  1：表示增）
    private BigDecimal beforeAmount; //变更前收入余额
    private BigDecimal changeAmount; //变更收入金额
    private BigDecimal currentAmount; //当前收入余额

    private String briefing; //说明
    private String operatorIp; //操作人IP地址
    private Date createTime; //创建时间
    private Date modifyTime; //更新时间
}
